﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ivy.Common.Framework.Base
{
    public interface IDaoInterface<EntityType, CriteriaEntityType>
    {
        bool Insert(EntityType DataEntity);
        bool Update(EntityType DataEntity);
        bool Delete(EntityType DataEntity);
        EntityType GetByID(String ID);
        List<EntityType> GetAll();
        List<EntityType> GetByCriteria(CriteriaEntityType CriteriaEntity);
    }
}
